﻿<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<title>YIWU ZHADONG TRADING CO.,LTD</title>
    <link rel="icon" href="./images/favicon.ico" />
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/font-awesome.min.css" rel="stylesheet">
	<link href="css/prettyPhoto.css" rel="stylesheet">
	<link href="css/price-range.css" rel="stylesheet">
	<link href="css/animate.css" rel="stylesheet">
	<link href="css/main.css" rel="stylesheet">
	<link href="css/responsive.css" rel="stylesheet">
	<!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
	<link rel="shortcut icon" href="images/ico/favicon.ico">
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png">
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png">
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png">
	<link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png">
</head>
<!--/head-->

<body>
	<div id="app" v-cloak>
		<header id="header">
			<!--header-->
			<div class="header_top">
				<!--header_top-->
				<div class="container">
					<div class="row">
						<div class="col-sm-6">
							<div class="contactinfo">
								<ul class="nav nav-pills">
									<li><a href="#"><i class="fa fa-phone"></i> {{ website.tel }}</a></li>
									<li><a href="#"><i class="fa fa-envelope"></i> {{ website.email }}</a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--/header_top-->

			<div class="header-middle">
				<!--header-middle-->
				<div class="container">
					<div class="row">
						<div class="col-sm-12">
							<div class="logo pull-left">
								<a href="index.html"><img style="width: 60px;" src="images/home/logo.png" alt="" /></a>
							</div>
							<div class="pull-left" id="diy-menu" style="position: relative;top: 20px;left: 20px;">
                                <div class="navbar-header">
                                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                                        data-target=".navbar-collapse">
                                        <span class="sr-only">Toggle navigation</span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                    </button>
                                </div>
                                <div class="mainmenu pull-left">
                                    <ul class="nav navbar-nav collapse navbar-collapse">
                                        <li><a href="index.html" class="active">{{ t.l1 }}</a></li>
                                        <li><a href="products.html">{{ t.l2 }}</a></li>
                                        <li><a href="#contact-page">{{ t.l3 }}</a></li>
                                    </ul>
                                </div>
							</div>
							<div class="btn-group pull-right" style="margin-left: 10px;margin-top: 5px;" v-if="langcode == 'EN'">
								<div class="btn-group">
									<button type="button" class="btn btn-default dropdown-toggle usa"
										data-toggle="dropdown">
										EN
										<span class="caret"></span>
									</button>
									<ul class="dropdown-menu">
										<li><a href="###" @click.stop="changeLang('CN')">CN</a></li>
									</ul>
								</div>
							</div>
							<div class="btn-group pull-right" style="margin-left: 10px;margin-top: 5px;" v-if="langcode == 'CN'">
								<div class="btn-group">
									<button type="button" class="btn btn-default dropdown-toggle usa"
										data-toggle="dropdown">
										CN
										<span class="caret"></span>
									</button>
									<ul class="dropdown-menu">
										<li><a href="###" @click.stop="changeLang('EN')">EN</a></li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</header>
		<!--/header-->

		<section id="slider">
			<!--slider-->
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<div id="slider-carousel" class="carousel slide" data-ride="carousel" v-if="swiperList.length">
							<ol class="carousel-indicators">
								<li v-for="item,i in swiperList" data-target="#slider-carousel" :data-slide-to="i"
									:class="i==0?'active':''"></li>
							</ol>

							<div class="carousel-inner">
								<div class="item" style="padding-left: 0;" :class="i==0?'active':''"
									v-for="item,i in swiperList">
									<img :src="item.imgurl" class="girl img-responsive"
										style="width: 1170px;height: 292px;" alt="" />
								</div>
							</div>

							<a href="#slider-carousel" class="left control-carousel hidden-xs" data-slide="prev">
								<i class="fa fa-angle-left"></i>
							</a>
							<a href="#slider-carousel" class="right control-carousel hidden-xs" data-slide="next">
								<i class="fa fa-angle-right"></i>
							</a>
						</div>

					</div>
				</div>
			</div>
		</section>
		<!--/slider-->

		<section>
			<div class="container">
				<div class="row">

					<div class="col-sm-12 padding-right">

						
						<div class="recommended_items">
							<!--recommended_items-->
							<h2 class="title text-center">{{ t.l20 }}</h2>

							<div id="about-us-carousel" class="carousel slide" data-ride="carousel">
								<div class="carousel-inner">
									<div class="item" v-for="item,i in aboutList" :class="i==0?'active':''">
										<div class="col-sm-12" v-for="jtem,j in item">
											<div class="product-image-wrapper">
												<div class="single-products">
													<div class="productinfo text-center">
														<img :src="jtem.imgurl" style="width: 640px;height: 320px;max-width: 100%;" alt="" />
														<h2 class="textL pl10" style="min-height: 40px;">{{ jtem.title }}</h2>
														<p class="textL pl10" style="min-height: 100px;">{{ jtem.content }}</p>
													</div>

												</div>
											</div>
										</div>
									</div>
								</div>
								<a v-if="aboutList.length > 1" class="left recommended-item-control" href="#about-us-carousel"
									data-slide="prev">
									<i class="fa fa-angle-left"></i>
								</a>
								<a v-if="aboutList.length > 1" class="right recommended-item-control" href="#about-us-carousel"
									data-slide="next">
									<i class="fa fa-angle-right"></i>
								</a>
							</div>
						</div>
						<!--/recommended_items-->
						<div class="recommended_items">
							<!--recommended_items-->
							<h2 class="title text-center">{{ t.l4 }}</h2>

							<div id="why-us-carousel" class="carousel slide" data-ride="carousel">
								<div class="carousel-inner">
									<div class="item" v-for="item,i in whyusList" :class="i==0?'active':''">
										<div class="col-sm-6" v-for="jtem,j in item">
											<div class="product-image-wrapper">
												<div class="single-products">
													<div class="productinfo text-center">
														<img :src="jtem.imgurl" style="width: 400px;height: 200px;max-width: 100%;" alt="" />
														<h2 class="textL pl10" style="min-height: 60px;">{{ jtem.title }}</h2>
														<p class="textL pl10" style="min-height: 100px;">{{ jtem.content }}</p>
													</div>

												</div>
											</div>
										</div>
									</div>
								</div>
								<a v-if="whyusList.length > 1" class="left recommended-item-control" href="#why-us-carousel"
									data-slide="prev">
									<i class="fa fa-angle-left"></i>
								</a>
								<a v-if="whyusList.length > 1" class="right recommended-item-control" href="#why-us-carousel"
									data-slide="next">
									<i class="fa fa-angle-right"></i>
								</a>
							</div>
						</div>
						<!--/recommended_items-->

						<div class="features_items">
							<!--features_items-->
							<h2 class="title text-center">{{ t.l5 }}</h2>
							<div class="col-sm-4" v-for="item,i in proList">
								<div class="product-image-wrapper">
									<div class="single-products">
										<div class="productinfo text-center">
											<img @click="preimg = item.proinfo.images" :src="item.proinfo.images" style="max-height: 300px;" alt="" />
											<h3 style="height: 30px;" class="text-cut textL pl10">
												{{ item.proinfo.name }}</h3>
											<p style="height: 40px;" class="text-cut2 textL pl10">
												{{ item.proinfo.contents }}</p>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!--features_items-->
						<div class="recommended_items">
							<!--recommended_items-->
							<h2 class="title text-center">{{ t.l6 }}</h2>

							<div id="our-team-carousel" class="carousel slide" data-ride="carousel">
								<div class="carousel-inner">
									<div class="item" v-for="item,i in teamList" :class="i==0?'active':''">
										<div class="col-sm-4" v-for="jtem,j in item">
											<div class="product-image-wrapper">
												<div class="single-products">
													<div class="productinfo text-center">
														<img :src="jtem.imgurl" style="width: 200px;height: 100px;" alt="" />
														<h2 class="textL pl10" style="min-height: 90px;">{{ jtem.title }}</h2>
														<p class="textL pl10">{{ jtem.content }}</p>
													</div>

												</div>
											</div>
										</div>
									</div>
								</div>
								<a v-if="teamList.length > 1" class="left recommended-item-control" href="#our-team-carousel"
									data-slide="prev">
									<i class="fa fa-angle-left"></i>
								</a>
								<a v-if="teamList.length > 1" class="right recommended-item-control" href="#our-team-carousel"
									data-slide="next">
									<i class="fa fa-angle-right"></i>
								</a>
							</div>
						</div>
						<!--/recommended_items-->
					</div>
				</div>
			</div>
			<div id="contact-page" class="container">
				<div class="bg">
					<div class="row">
						<div class="col-sm-12">
							<h2 class="title text-center">{{ t.l7 }}</h2>
							<!-- <div id="gmap" class="contact-map">
					</div> -->
						</div>
					</div>
					<div class="row">
						<div class="col-sm-8">
							<div class="contact-form">
								<h2 class="title text-center">{{ t.l8 }}</h2>
								<div class="status alert alert-success" style="display: none"></div>
								<form id="main-contact-form" class="contact-form row" name="contact-form" method="post"
									onsubmit="return false;">
									<div class="form-group col-md-6">
										<input id="feed-name" type="text" name="name" class="form-control"
											required="required" :placeholder="t.l10">
									</div>
									<div class="form-group col-md-6">
										<input id="feed-email" type="email" name="email" class="form-control"
											required="required" :placeholder="t.l11">
									</div>
									<div class="form-group col-md-12">
										<input id="feed-title" type="text" name="title" class="form-control"
											required="required" :placeholder="t.l12">
									</div>
									<div class="form-group col-md-12">
										<textarea name="content" id="message" required="required" class="form-control"
											rows="8" :placeholder="t.l13"></textarea>
									</div>
									<div class="form-group col-md-12">
										<input type="submit" name="submit" class="btn btn-primary pull-right"
                                            :value="t.l17" onclick="subform()">
									</div>
								</form>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="contact-info">
								<h2 class="title text-center">{{ t.l9 }}</h2>
								<address>
									<p>{{ t.l14 }}: {{ website.tel }}</p>
									<p style="margin-top: 15px;">{{ t.l15 }}: {{ website.fax }}</p>
									<p style="margin-top: 15px;">{{ t.l11 }}: {{ website.email }}</p>
									<p style="margin-top: 15px;">{{ t.l16 }}: {{ website.address }}</p>
								</address>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>

		<footer id="footer">
			<!--Footer-->
			<div class="footer-top">
			</div>

			<div class="footer-bottom">
				<div class="container">
					<div class="row">
						<p class="pull-left">Copyright © 2025 E-SHOPPER Inc. All rights reserved.</p>

					</div>
				</div>
			</div>

		</footer>
		<div class="pre-img" v-if="preimg" @click="preimg = ''">
			<img :src="preimg" alt="">
		</div>
	</div>
	<!--/Footer-->



	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/jquery.scrollUp.min.js"></script>
	<script src="js/price-range.js"></script>
	<script src="js/jquery.prettyPhoto.js"></script>
	<script type="text/javascript" src="js/vue.min.js"></script>
	<script src="js/main.js"></script>
	<script>
		var vue = null;
		function subform() {
			const params = {
				name: $('#feed-name').val(),
				email: $('#feed-email').val(),
				title: $('#feed-title').val(),
				content: $('#message').val(),
			}
			if (!params.name || !params.email || !params.title || !params.content) {
				return;
			}
			$.ajax({
				method: 'POST',
				url: BASE_URL_REQUEST + '/api/shop/feedback/add',
				data: JSON.stringify(params),
				contentType: 'application/json; charset=UTF-8',
				success() {
                    const langcode = localStorage.getItem('langcode') || 'EN';
					$('#feed-name').val('');
					$('#feed-email').val('');
					$('#feed-title').val('');
					$('#message').val('');
                    if(langcode == 'EN'){
                        alert("Submitted successfully");
                    }else{
                        alert("提交成功");
                    }
				}
			})
			console.log('提交', params, BASE_URL_REQUEST);
		}
		$(document).ready(function () {
			vue = new Vue({
				el: '#app',
				data() {
					return {
                        langcode: 'EN',
                        t: {},
						aboutList: [],
						proList: [],
						swiperList: [],
						teamList: [],
						website: {},
						whyusList: [],
						preimg: '',
					}
				},
				mounted() {
                    this.langcode = localStorage.getItem('langcode') || 'EN';
                    this.t = LANG[this.langcode];
					this.getSwiper();
                    document.title = this.t.title;
				},
				methods: {
					chunkArray(arr, size){
						let result = [];
						for (let i = 0; i < arr.length; i += size) {
							result.push(arr.slice(i, i + size));
						}
						return result;
					},
					getSwiper() {
						const t = this;
						$.ajax({
							method: 'POST',
							url: BASE_URL_REQUEST + '/api/shop/config/detail',
							data: JSON.stringify({
								id: 22
							}),
							contentType: 'application/json; charset=UTF-8',
							success(res) {
								if (res.data.value) {
									const value = JSON.parse(res.data.value);
									console.log(value);
									if (value.aboutList.length) {
										t.aboutList = t.chunkArray(value.aboutList, 1);
									}
									if (value.proList.length) {
										t.proList = value.proList;
									}
									if (value.swiperList.length) {
										t.swiperList = value.swiperList;
									}
									if (value.teamList.length) {
										t.teamList = t.chunkArray(value.teamList, 3);
										console.log(t.teamList);
									}
									if (value.website) {
										t.website = value.website;
									}
									if (value.whyusList.length) {
										t.whyusList = t.chunkArray(value.whyusList, 2);
									}
								}
							}
						})
					},
                    changeLang(code){
                        localStorage.setItem('langcode', code); 
                        this.langcode = code;
                        this.t = LANG[code];
                        location.reload();
                    }
				}
			})
		});
	</script>
</body>

</html>